package com.ymatou.iapi.trading.operate2.parameter.req;

import java.util.List;

import com.ymatou.iapi.trading.operate.parameter.CouponVo;
import com.ymatou.iapi.trading.operate.parameter.OrderGroupVo;
import com.ymatou.iapi.trading.operate.parameter.req.BizVo;
import com.ymatou.iapi.trading.operate2.parameter.enums.AppTerminalSourceEnum;
import com.ymatou.iapi.trading.operate2.parameter.enums.OrderSourceEnum;
import com.ymatou.iapi.trading.operate2.parameter.enums.TerminalSourceEnum;
import com.ymt.base.BaseBean;

public class PlaceOrderReq extends BaseBean {

	private long mainOrderId;

	// 买家ID
	private long userId;

	//收件地址ID
	private long addressId;

	//收件人手机
	private String recvMobile;

	//收件人姓名
	private String recvName;

	//收件地址
	private String address;

	//邮编
	private String postCode;

	// 订单来源
	private OrderSourceEnum orderSource;

	// 终端来源
	private TerminalSourceEnum terminalSource;

	// 应用终端来源
	private AppTerminalSourceEnum appTerminalSource;

	// 买家IP
	private String sourceIp;

	// 设备ID
	private String deviceId;

	// 用户设备原始ID,例如IMEI等
	private String equipmentId;

	// 订单组列表。一般按买手分组
	private List<OrderGroupVo> orderGroups;

	// 使用的平台优惠券
	private CouponVo ymatouCoupon;

	/**
	 * 业务来源
	 */
	private BizVo bizSource;

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public OrderSourceEnum getOrderSource() {
		return orderSource;
	}

	public void setOrderSource(OrderSourceEnum orderSource) {
		this.orderSource = orderSource;
	}

	public TerminalSourceEnum getTerminalSource() {
		return terminalSource;
	}

	public void setTerminalSource(TerminalSourceEnum terminalSource) {
		this.terminalSource = terminalSource;
	}

	public AppTerminalSourceEnum getAppTerminalSource() {
		return appTerminalSource;
	}

	public void setAppTerminalSource(AppTerminalSourceEnum appTerminalSource) {
		this.appTerminalSource = appTerminalSource;
	}

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public String getSourceIp() {
		return sourceIp;
	}

	public void setSourceIp(String sourceIp) {
		this.sourceIp = sourceIp;
	}

	public List<OrderGroupVo> getOrderGroups() {
		return orderGroups;
	}

	public void setOrderGroups(List<OrderGroupVo> orderGroups) {
		this.orderGroups = orderGroups;
	}

	public CouponVo getYmatouCoupon() {
		return ymatouCoupon;
	}

	public void setYmatouCoupon(CouponVo ymatouCoupon) {
		this.ymatouCoupon = ymatouCoupon;
	}

	public String getEquipmentId() {
		return equipmentId;
	}

	public void setEquipmentId(String equipmentId) {
		this.equipmentId = equipmentId;
	}

	public boolean requireAppId() {
		return true;
	}

	public BizVo getBizSource() {
		return bizSource;
	}

	public void setBizSource(BizVo bizSource) {
		this.bizSource = bizSource;
	}

	public long getMainOrderId() {
		return mainOrderId;
	}

	public void setMainOrderId(long mainOrderId) {
		this.mainOrderId = mainOrderId;
	}

	public long getAddressId() {
		return addressId;
	}

	public void setAddressId(long addressId) {
		this.addressId = addressId;
	}

	public String getRecvMobile() {
		return recvMobile;
	}

	public void setRecvMobile(String recvMobile) {
		this.recvMobile = recvMobile;
	}

	public String getRecvName() {
		return recvName;
	}

	public void setRecvName(String recvName) {
		this.recvName = recvName;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPostCode() {
		return postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	public String getRequestId() {
		return "" + mainOrderId;
	}
}
